package sqlite.domain;


import sqlite.annotation.Column;
import sqlite.annotation.Table;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: 甘竞存
 * Date: 14-11-10
 * Time: 上午11:51
 * 对应erp中间库表:Order_info
 */
@Table("order_info")
public class OrderInfo {
    @Column("order_no")
    private String orderNo;      //订单号
    @Column("Warehouse_code")
    private String storeId;      //门店id
    @Column("buyer_nick")
    private String customerName ;  //买家昵称
    @Column("Shipping_code")
    private String shippingCode ;   //承运商
    @Column("Shipping_type")
    private String shippingType ;    //
    @Column("type")
    private String orderType ;
    @Column("created")
    private Date submitDate ;
    @Column("payment")
    private Double payMent ;  //买家实付金额 包含运费
    @Column("adjust_fee")
    private Double adjustFee ;       //优惠金额
    @Column("post_fee")
    private Double totalShipping ;   //邮费
    @Column("total_fee")
    private Double subTotal ;
    @Column("pay_time")
    private Date payDate ;
    @Column("end_time")
    private Date endTime ;
    @Column("consign_time")
    private Date consignTime;
    @Column("buyer_memo")
    private String buyerMemo ;
    @Column("seller_memo")
    private String sellerMemo ;
    @Column("receiver_name")
    private String name ;
    @Column("receiver_state")
    private String province ;
    @Column("receiver_city")
    private String city ;
    @Column("receiver_district")
    private String district ;
    @Column("receiver_address")
    private String streetAddress ;
    @Column("receiver_zip")
    private String postCode ;
    @Column("receiver_mobile")
    private String mobile ;
    @Column("receiver_phone")
    private String phone ;
    @Column("buyer_email")
    private String email ;
    @Column("E_CREATE_TIME")
    private Date createTime ;
    @Column("F_UPDATE_TIME")
    private Date updateTime ;
    @Column("BS_FLAG")
    private String flag ;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getShippingCode() {
        return shippingCode;
    }

    public void setShippingCode(String shippingCode) {
        this.shippingCode = shippingCode;
    }

    public String getShippingType() {
        return shippingType;
    }

    public void setShippingType(String shippingType) {
        this.shippingType = shippingType;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public Double getPayMent() {
        return payMent;
    }

    public void setPayMent(Double payMent) {
        this.payMent = payMent;
    }

    public Double getAdjustFee() {
        return adjustFee;
    }

    public void setAdjustFee(Double adjustFee) {
        this.adjustFee = adjustFee;
    }

    public Double getTotalShipping() {
        return totalShipping;
    }

    public void setTotalShipping(Double totalShipping) {
        this.totalShipping = totalShipping;
    }

    public Double getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(Double subTotal) {
        this.subTotal = subTotal;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getConsignTime() {
        return consignTime;
    }

    public void setConsignTime(Date consignTime) {
        this.consignTime = consignTime;
    }

    public String getBuyerMemo() {
        return buyerMemo;
    }

    public void setBuyerMemo(String buyerMemo) {
        this.buyerMemo = buyerMemo;
    }

    public String getSellerMemo() {
        return sellerMemo;
    }

    public void setSellerMemo(String sellerMemo) {
        this.sellerMemo = sellerMemo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getStreetAddress() {
        return streetAddress;
    }

    public void setStreetAddress(String streetAddress) {
        this.streetAddress = streetAddress;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "orderNo='" + orderNo + '\'' +
                ", storeId='" + storeId + '\'' +
                ", customerName='" + customerName + '\'' +
                ", shippingCode='" + shippingCode + '\'' +
                ", shippingType='" + shippingType + '\'' +
                ", orderType='" + orderType + '\'' +
                ", submitDate=" + submitDate +
                ", payMent=" + payMent +
                ", adjustFee=" + adjustFee +
                ", totalShipping=" + totalShipping +
                ", subTotal=" + subTotal +
                ", payDate=" + payDate +
                ", endTime=" + endTime +
                ", consignTime=" + consignTime +
                ", buyerMemo='" + buyerMemo + '\'' +
                ", sellerMemo='" + sellerMemo + '\'' +
                ", name='" + name + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", address='" + streetAddress + '\'' +
                ", postCode='" + postCode + '\'' +
                ", mobile='" + mobile + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", flag='" + flag + '\'' +
                '}';
    }
}
